<%-- 
    Document   : correo
    Created on : 16-may-2014, 10:57:39
    Author     : romulogalindo
--%>

<%@page import="wf3.util.Mensaje"%>
<%
    Mensaje msg = (Mensaje) session.getAttribute("correo_" + request.getParameter("co_correo"));
    response.setCharacterEncoding(msg.getEncoding());
    response.setContentType(msg.getType()); //fixed

    if (msg.getType().contentEquals("text/plain")) {
        out.print(msg.getBody());
    } else {
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="<%=msg.getType()%>; charset=<%=msg.getEncoding()%>">
        <title>Correo</title>
    </head>
    <body>
        <%=msg.getBody()%>
    </body>
</html>

<%
    }
%>
